package me.weijing.common.widget;

import me.weijing.common.R;
import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.FrameLayout;
import android.widget.TextView;

public class MapStationView extends FrameLayout {

    private TextView mPoliceName;

    public MapStationView(Context context) {
        this(context, null, 0);
    }

    public MapStationView(Context context, AttributeSet attrs) {
        this(context, attrs, 0);
    }

    public void setStationView(String name) {
        mPoliceName.setText(name);
    }

    public MapStationView(Context context, AttributeSet attrs, int defStyle) {
        super(context, attrs, defStyle);
        LayoutInflater inflater = LayoutInflater.from(context);
        inflater.inflate(R.layout.map_statiion, this, true);
        mPoliceName = (TextView) findViewById(R.id.map_station_name);
    }
}
